<?php

/******
测试页面，无需登录
test_page.php
******/

if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Test_Page extends CI_Controller {

	public $data;
	private $error = '';

	public function __construct()
	{
		parent::__construct();
		$this->load->database();
		//载入必要类文件
		$this->load->model('Sub_goods_model');
		$this->load->model('Supplier_model');
		$this->load->model('Suppliers_Goods_model');
		$this->load->model('Outbound_type_model');
		$this->load->model('Inbound_type_model');
		$this->load->model('Stock_model');
		$this->load->model('Stock_Detail_model');
		//载入必要库文件
		//载入配置文件 并 初始化控制器
		$this->data['site'] = $this->config->item('site');
		$this->data['TYPE'] = $this->config->item('TYPE');
		$this->data['title'] = '功能测试页面';
		$this->data['styles'] = array('test/search_goods.css');
		$this->data['scripts'] = array('jquery-1.7.2.min.js', 'master.js', 'test/search_goods.js');
	}

	public function index()
	{
		$this->load->view('test/search_goods_view', $this->data);
	}

}